home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / ai.prl / opnprlg1.hqx / Open Prolog / Open Prolog.rsrc / CODE_10_WindowStuff.txt < prev    next >
Text File  |  1993-04-15  |  49KB  |  865 lines

  1. # near model CODE resource
  2. # entry label at 0x0000
  3. export_303:
  4. entry:
  5. 00000000  4E56 FFE8                link       A6, -0x0018
  6. 00000004  48E7 F0E0                movem.l    -[A7], D0,D1,D2,D3,A0,A1,A2
  7. 00000008  246E 0008                movea.l    A2, [A6 + 0x8]
  8. 0000000C  2F0A                     move.l     -[A7], A2
  9. 0000000E  A873                     trap       SetPort
  10. 00000010  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  11. 00000014  6708                     beq        +0xA /* 0000001E */
  12. 00000016  487A 01C6                pea.l      [PC + 0x1C6 /* 000001DE */]
  13. 0000001A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  14. label0000001E:
  15. 0000001E  548F                     addq.l     A7, 2
  16. 00000020  2D6A 0010 FFE8           move.l     [A6 - 0x18], [A2 + 0x10]
  17. 00000026  2D6A 0014 FFEC           move.l     [A6 - 0x14], [A2 + 0x14]
  18. 0000002C  066E 0013 FFE8           addi.w     [A6 - 0x18], 0x13
  19. 00000032  046E 000F FFEC           subi.w     [A6 - 0x14], 0xF
  20. 00000038  046E 000F FFEE           subi.w     [A6 - 0x12], 0xF
  21. 0000003E  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  22. 00000042  A8D8                     trap       NewRgn
  23. 00000044  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  24. 00000048  6708                     beq        +0xA /* 00000052 */
  25. 0000004A  487A 0192                pea.l      [PC + 0x192 /* 000001DE */]
  26. 0000004E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  27. label00000052:
  28. 00000052  548F                     addq.l     A7, 2
  29. 00000054  2D57 FFFC                move.l     [A6 - 0x4], [A7]
  30. 00000058  486E FFE8                pea.l      [A6 - 0x18]
  31. 0000005C  A8DF                     trap       RectRgn
  32. 0000005E  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  33. 00000062  6708                     beq        +0xA /* 0000006C */
  34. 00000064  487A 0178                pea.l      [PC + 0x178 /* 000001DE */]
  35. 00000068  4EAD 0CD2                jsr        [A5 + 0xCD2]
  36. label0000006C:
  37. 0000006C  548F                     addq.l     A7, 2
  38. 0000006E  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  39. 00000072  A8D8                     trap       NewRgn
  40. 00000074  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  41. 00000078  6708                     beq        +0xA /* 00000082 */
  42. 0000007A  487A 0162                pea.l      [PC + 0x162 /* 000001DE */]
  43. 0000007E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  44. label00000082:
  45. 00000082  548F                     addq.l     A7, 2
  46. 00000084  2F17                     move.l     -[A7], [A7]
  47. 00000086  2D57 FFF8                move.l     [A6 - 0x8], [A7]
  48. 0000008A  206A 023C                movea.l    A0, [A2 + 0x23C]
  49. 0000008E  A029                     trap       HLock
  50. 00000090  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  51. 00000094  6708                     beq        +0xA /* 0000009E */
  52. 00000096  487A 0146                pea.l      [PC + 0x146 /* 000001DE */]
  53. 0000009A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  54. label0000009E:
  55. 0000009E  548F                     addq.l     A7, 2
  56. 000000A0  2250                     movea.l    A1, [A0]
  57. 000000A2  4869 0008                pea.l      [A1 + 0x8]
  58. 000000A6  A8DF                     trap       RectRgn
  59. 000000A8  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  60. 000000AC  6708                     beq        +0xA /* 000000B6 */
  61. 000000AE  487A 012E                pea.l      [PC + 0x12E /* 000001DE */]
  62. 000000B2  4EAD 0CD2                jsr        [A5 + 0xCD2]
  63. label000000B6:
  64. 000000B6  548F                     addq.l     A7, 2
  65. 000000B8  206A 023C                movea.l    A0, [A2 + 0x23C]
  66. 000000BC  A02A                     trap       HUnlock
  67. 000000BE  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  68. 000000C2  6708                     beq        +0xA /* 000000CC */
  69. 000000C4  487A 0118                pea.l      [PC + 0x118 /* 000001DE */]
  70. 000000C8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  71. label000000CC:
  72. 000000CC  548F                     addq.l     A7, 2
  73. 000000CE  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  74. 000000D2  A8D8                     trap       NewRgn
  75. 000000D4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  76. 000000D8  6708                     beq        +0xA /* 000000E2 */
  77. 000000DA  487A 0102                pea.l      [PC + 0x102 /* 000001DE */]
  78. 000000DE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  79. label000000E2:
  80. 000000E2  548F                     addq.l     A7, 2
  81. 000000E4  2F17                     move.l     -[A7], [A7]
  82. 000000E6  2D57 FFF4                move.l     [A6 - 0xC], [A7]
  83. 000000EA  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  84. 000000EE  A8DF                     trap       RectRgn
  85. 000000F0  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  86. 000000F4  6708                     beq        +0xA /* 000000FE */
  87. 000000F6  487A 00E6                pea.l      [PC + 0xE6 /* 000001DE */]
  88. 000000FA  4EAD 0CD2                jsr        [A5 + 0xCD2]
  89. label000000FE:
  90. 000000FE  548F                     addq.l     A7, 2
  91. 00000100  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  92. 00000104  A8D8                     trap       NewRgn
  93. 00000106  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  94. 0000010A  6708                     beq        +0xA /* 00000114 */
  95. 0000010C  487A 00D0                pea.l      [PC + 0xD0 /* 000001DE */]
  96. 00000110  4EAD 0CD2                jsr        [A5 + 0xCD2]
  97. label00000114:
  98. 00000114  548F                     addq.l     A7, 2
  99. 00000116  2D57 FFF0                move.l     [A6 - 0x10], [A7]
  100. 0000011A  A8E4                     trap       SectRgn
  101. 0000011C  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  102. 00000120  6708                     beq        +0xA /* 0000012A */
  103. 00000122  487A 00BA                pea.l      [PC + 0xBA /* 000001DE */]
  104. 00000126  4EAD 0CD2                jsr        [A5 + 0xCD2]
  105. label0000012A:
  106. 0000012A  548F                     addq.l     A7, 2
  107. 0000012C  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  108. 00000130  2F2E FFF0                move.l     -[A7], [A6 - 0x10]
  109. 00000134  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  110. 00000138  A8E6                     trap       DiffRgn
  111. 0000013A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  112. 0000013E  6708                     beq        +0xA /* 00000148 */
  113. 00000140  487A 009C                pea.l      [PC + 0x9C /* 000001DE */]
  114. 00000144  4EAD 0CD2                jsr        [A5 + 0xCD2]
  115. label00000148:
  116. 00000148  548F                     addq.l     A7, 2
  117. 0000014A  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  118. 0000014E  A8D4                     trap       EraseRgn
  119. 00000150  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  120. 00000154  6708                     beq        +0xA /* 0000015E */
  121. 00000156  487A 0086                pea.l      [PC + 0x86 /* 000001DE */]
  122. 0000015A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  123. label0000015E:
  124. 0000015E  548F                     addq.l     A7, 2
  125. 00000160  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  126. 00000164  A927                     trap       InvalRgn
  127. 00000166  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  128. 0000016A  6708                     beq        +0xA /* 00000174 */
  129. 0000016C  487A 0070                pea.l      [PC + 0x70 /* 000001DE */]
  130. 00000170  4EAD 0CD2                jsr        [A5 + 0xCD2]
  131. label00000174:
  132. 00000174  548F                     addq.l     A7, 2
  133. 00000176  2F2E FFF0                move.l     -[A7], [A6 - 0x10]
  134. 0000017A  A8D9                     trap       DisposRgn/DisposeRgn
  135. 0000017C  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  136. 00000180  6708                     beq        +0xA /* 0000018A */
  137. 00000182  487A 005A                pea.l      [PC + 0x5A /* 000001DE */]
  138. 00000186  4EAD 0CD2                jsr        [A5 + 0xCD2]
  139. label0000018A:
  140. 0000018A  548F                     addq.l     A7, 2
  141. 0000018C  2F2E FFF8                move.l     -[A7], [A6 - 0x8]
  142. 00000190  A8D9                     trap       DisposRgn/DisposeRgn
  143. 00000192  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  144. 00000196  6708                     beq        +0xA /* 000001A0 */
  145. 00000198  487A 0044                pea.l      [PC + 0x44 /* 000001DE */]
  146. 0000019C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  147. label000001A0:
  148. 000001A0  548F                     addq.l     A7, 2
  149. 000001A2  2F2E FFF4                move.l     -[A7], [A6 - 0xC]
  150. 000001A6  A8D9                     trap       DisposRgn/DisposeRgn
  151. 000001A8  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  152. 000001AC  6708                     beq        +0xA /* 000001B6 */
  153. 000001AE  487A 002E                pea.l      [PC + 0x2E /* 000001DE */]
  154. 000001B2  4EAD 0CD2                jsr        [A5 + 0xCD2]
  155. label000001B6:
  156. 000001B6  548F                     addq.l     A7, 2
  157. 000001B8  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  158. 000001BC  A8D9                     trap       DisposRgn/DisposeRgn
  159. 000001BE  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  160. 000001C2  6708                     beq        +0xA /* 000001CC */
  161. 000001C4  487A 0018                pea.l      [PC + 0x18 /* 000001DE */]
  162. 000001C8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  163. label000001CC:
  164. 000001CC  548F                     addq.l     A7, 2
  165. 000001CE  4CDF 070F                movem.l    A2,A1,A0,D3,D2,D1,D0, [A7]+
  166. 000001D2  4E5E                     unlink     A6
  167. 000001D4  2F57 0008                move.l     [A7 + 0x8], [A7]
  168. 000001D8  4FEF 0008                lea.l      A7, [A7 + 0x8]
  169. 000001DC  4E75                     rts
  170. 000001DE  8F41 4444                pack       D7, D1, 0x4444
  171. 000001E2  5550                     subq.w     [A0], 2
  172. 000001E4  4441                     neg.w      D1
  173. 000001E6  5445                     addq.w     D5, 2
  174. 000001E8  5245                     addq.w     D5, 1
  175. 000001EA  4749                     chk.w      D3, A1
  176. 000001EC  4F4E                     chk.w      D7, A6
  177. 000001EE  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  178. // begin alternate branch 000001F0-000001F4
  179. export_304:
  180. fn000001F0:
  181. 000001F0  4E56 FFFA                link       A6, -0x0006
  182. // end alternate branch 000001F0-000001F4
  183. export_304: // at 000001F0 (misaligned)
  184. fn000001F0: // (misaligned)
  185. 000001F2  FFFA                     .extension 0xFFA // unimplemented
  186. 000001F4  48E7 E0C0                movem.l    -[A7], D0,D1,D2,A0,A1
  187. 000001F8  206E 0008                movea.l    A0, [A6 + 0x8]
  188. 000001FC  A029                     trap       HLock
  189. 000001FE  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  190. 00000202  6708                     beq        +0xA /* 0000020C */
  191. 00000204  487A 007A                pea.l      [PC + 0x7A /* 00000280 */]
  192. 00000208  4EAD 0CD2                jsr        [A5 + 0xCD2]
  193. label0000020C:
  194. 0000020C  548F                     addq.l     A7, 2
  195. 0000020E  2250                     movea.l    A1, [A0]
  196. 00000210  3D69 005E 000C           move.w     [A6 + 0xC], [A1 + 0x5E]
  197. 00000216  3D69 003C FFFE           move.w     [A6 - 0x2], [A1 + 0x3C]
  198. 0000021C  2D69 003E FFFA           move.l     [A6 - 0x6], [A1 + 0x3E]
  199. 00000222  A02A                     trap       HUnlock
  200. 00000224  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  201. 00000228  6708                     beq        +0xA /* 00000232 */
  202. 0000022A  487A 0054                pea.l      [PC + 0x54 /* 00000280 */]
  203. 0000022E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  204. label00000232:
  205. 00000232  548F                     addq.l     A7, 2
  206. 00000234  206E FFFA                movea.l    A0, [A6 - 0x6]
  207. 00000238  A029                     trap       HLock
  208. 0000023A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  209. 0000023E  6708                     beq        +0xA /* 00000248 */
  210. 00000240  487A 003E                pea.l      [PC + 0x3E /* 00000280 */]
  211. 00000244  4EAD 0CD2                jsr        [A5 + 0xCD2]
  212. label00000248:
  213. 00000248  548F                     addq.l     A7, 2
  214. 0000024A  2250                     movea.l    A1, [A0]
  215. 0000024C  302E FFFE                move.w     D0, [A6 - 0x2]
  216. 00000250  6708                     beq        +0xA /* 0000025A */
  217. 00000252  0C31 000D 00FF           cmpi.b     [A1 + D0.w - 0x1], 0xD /* '\r' */
  218. 00000258  6604                     bne        +0x6 /* 0000025E */
  219. label0000025A:
  220. 0000025A  526E 000C                addq.w     [A6 + 0xC], 1
  221. label0000025E:
  222. 0000025E  A02A                     trap       HUnlock
  223. 00000260  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  224. 00000264  6708                     beq        +0xA /* 0000026E */
  225. 00000266  487A 0018                pea.l      [PC + 0x18 /* 00000280 */]
  226. 0000026A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  227. label0000026E:
  228. 0000026E  548F                     addq.l     A7, 2
  229. 00000270  4CDF 0307                movem.l    A1,A0,D2,D1,D0, [A7]+
  230. 00000274  4E5E                     unlink     A6
  231. 00000276  2F57 0004                move.l     [A7 + 0x4], [A7]
  232. 0000027A  4FEF 0004                lea.l      A7, [A7 + 0x4]
  233. 0000027E  4E75                     rts
  234. 00000280  9147                     subx.w     D0, D7
  235. 00000282  4554                     chk.w      D2, [A4]
  236. 00000284  4144                     chk.w      D0, D4
  237. 00000286  4A55                     tst.w      [A5]
  238. 00000288  5354                     subq.w     [A4], 1
  239. 0000028A  4544                     chk.w      D2, D4
  240. 0000028C  4E4C                     trap       12
  241. 0000028E  494E                     chk.w      D4, A6
  242. 00000290  4553                     chk.w      D2, [A3]
  243. 00000292  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  244. export_305: // at 00000294 (misaligned)
  245. 00000296  FFF2                     .extension 0xFF2 // unimplemented
  246. 00000298  48E7 F0E0                movem.l    -[A7], D0,D1,D2,D3,A0,A1,A2
  247. 0000029C  246E 0008                movea.l    A2, [A6 + 0x8]
  248. 000002A0  206A 023C                movea.l    A0, [A2 + 0x23C]
  249. 000002A4  2250                     movea.l    A1, [A0]
  250. 000002A6  3029 0002                move.w     D0, [A1 + 0x2]
  251. 000002AA  9069 000A                sub.w      D0, [A1 + 0xA]
  252. 000002AE  3D40 FFF4                move.w     [A6 - 0xC], D0
  253. 000002B2  3029 0006                move.w     D0, [A1 + 0x6]
  254. 000002B6  9069 000E                sub.w      D0, [A1 + 0xE]
  255. 000002BA  3D40 FFF2                move.w     [A6 - 0xE], D0
  256. 000002BE  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  257. 000002C2  2F08                     move.l     -[A7], A0
  258. 000002C4  4EBA FF2A                jsr        [PC - 0xD6 /* 000001F0 */]
  259. 000002C8  3D5F FFFC                move.w     [A6 - 0x4], [A7]+
  260. 000002CC  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  261. 000002D0  2F2A 008C                move.l     -[A7], [A2 + 0x8C]
  262. 000002D4  A962                     trap       GetControlMaximum/GetMaxCtl
  263. 000002D6  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  264. 000002DA  6708                     beq        +0xA /* 000002E4 */
  265. 000002DC  487A 01E8                pea.l      [PC + 0x1E8 /* 000004C6 */]
  266. 000002E0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  267. label000002E4:
  268. 000002E4  548F                     addq.l     A7, 2
  269. 000002E6  362E FFF2                move.w     D3, [A6 - 0xE]
  270. 000002EA  6A02                     bpl        +0x4 /* 000002EE */
  271. 000002EC  4243                     clr.w      D3
  272. label000002EE:
  273. 000002EE  B65F                     cmp.w      D3, [A7]+
  274. 000002F0  6700 001A                beq        +0x1C /* 0000030C */
  275. 000002F4  2F2A 008C                move.l     -[A7], [A2 + 0x8C]
  276. 000002F8  3F03                     move.w     -[A7], D3
  277. 000002FA  A965                     trap       SetControlMaximum/SetMaxCtl
  278. 000002FC  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  279. 00000300  6708                     beq        +0xA /* 0000030A */
  280. 00000302  487A 01C2                pea.l      [PC + 0x1C2 /* 000004C6 */]
  281. 00000306  4EAD 0CD2                jsr        [A5 + 0xCD2]
  282. label0000030A:
  283. 0000030A  548F                     addq.l     A7, 2
  284. label0000030C:
  285. 0000030C  4FEF FFFE                lea.l      A7, [A7 - 0x2]
  286. 00000310  2F2A 008C                move.l     -[A7], [A2 + 0x8C]
  287. 00000314  A961                     trap       GetControlMinimum/GetMinCtl
  288. 00000316  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  289. 0000031A  6708                     beq        +0xA /* 00000324 */
  290. 0000031C  487A 01A8                pea.l      [PC + 0x1A8 /* 000004C6 */]
  291. 00000320  4EAD 0CD2                jsr        [A5 + 0xCD2]
  292. label00000324:
  293. 00000324  548F                     addq.l     A7, 2
  294. 00000326  362E FFF4                move.w     D3, [A6 - 0xC]
  295. 0000032A  6B02                     bmi        +0x4 /* 0000032E */
  296. 0000032C  4243                     clr.w      D3
  297. label0000032E:
  298. 0000032E  B65F                     cmp.w      D3, [A7]+
  299. 00000330  6700 001A                beq        +0x1C /* 0000034C */
  300. 00000334  2F2A 008C                move.l     -[A7], [A2 + 0x8C]
  301. 00000338  3F03                     move.w     -[A7], D3
  302. 0000033A  A964                     trap       SetControlMinimum/SetMinCtl
  303. 0000033C  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  304. 00000340  6708                     beq        +0xA /* 0000034A */
  305. 00000342  487A 0182                pea.l      [PC + 0x182 /* 000004C6 */]
  306. 00000346  4EAD 0CD2                jsr        [A5 + 0xCD2]
  307. label0000034A:
  308. 0000034A  548F                     addq.l     A7, 2
  309. label0000034C:
  310. 0000034C  206A 023C                movea.l    A0, [A2 + 0x23C]
  311. 00000350  A029                     trap       HLock
  312. 00000352  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  313. 00000356  6708                     beq        +0xA /* 00000360 */
  314. 00000358  487A 016C                pea.l      [PC + 0x16C /* 000004C6 */]
  315. 0000035C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  316. label00000360:
  317. 00000360  548F                     addq.l     A7, 2
  318. 00000362  2250                     movea.l    A1, [A0]
  319. 00000364  3611                     move.w     D3, [A1]
  320. 00000366  9669 0008                sub.w      D3, [A1 + 0x8]
  321. 0000036A  A02A                     trap       HUnlock
  322. 0000036C  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  323. 00000370  6708                     beq        +0xA /* 0000037A */
  324. 00000372  487A 0152                pea.l      [PC + 0x152 /* 000004C6 */]
  325. 00000376  4EAD 0CD2                jsr        [A5 + 0xCD2]
  326. label0000037A:
  327. 0000037A  548F                     addq.l     A7, 2
  328. 0000037C  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  329. 00000380  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  330. 00000384  3F3C 0004                move.w     -[A7], 0x4
  331. 00000388  A83D                     trap       TEDispatch
  332. 0000038A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  333. 0000038E  6708                     beq        +0xA /* 00000398 */
  334. 00000390  487A 0134                pea.l      [PC + 0x134 /* 000004C6 */]
  335. 00000394  4EAD 0CD2                jsr        [A5 + 0xCD2]
  336. label00000398:
  337. 00000398  548F                     addq.l     A7, 2
  338. 0000039A  205F                     movea.l    A0, [A7]+
  339. 0000039C  A029                     trap       HLock
  340. 0000039E  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  341. 000003A2  6708                     beq        +0xA /* 000003AC */
  342. 000003A4  487A 0120                pea.l      [PC + 0x120 /* 000004C6 */]
  343. 000003A8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  344. label000003AC:
  345. 000003AC  548F                     addq.l     A7, 2
  346. 000003AE  2250                     movea.l    A1, [A0]
  347. 000003B0  2F29 0008                move.l     -[A7], [A1 + 0x8]
  348. 000003B4  A02A                     trap       HUnlock
  349. 000003B6  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  350. 000003BA  6708                     beq        +0xA /* 000003C4 */
  351. 000003BC  487A 0108                pea.l      [PC + 0x108 /* 000004C6 */]
  352. 000003C0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  353. label000003C4:
  354. 000003C4  548F                     addq.l     A7, 2
  355. 000003C6  205F                     movea.l    A0, [A7]+
  356. 000003C8  A029                     trap       HLock
  357. 000003CA  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  358. 000003CE  6708                     beq        +0xA /* 000003D8 */
  359. 000003D0  487A 00F4                pea.l      [PC + 0xF4 /* 000004C6 */]
  360. 000003D4  4EAD 0CD2                jsr        [A5 + 0xCD2]
  361. label000003D8:
  362. 000003D8  548F                     addq.l     A7, 2
  363. 000003DA  2250                     movea.l    A1, [A0]
  364. 000003DC  7000                     moveq.l    D0, 0x00
  365. 000003DE  4A43                     tst.w      D3
  366. 000003E0  670A                     beq        +0xC /* 000003EC */
  367. label000003E2:
  368. 000003E2  5240                     addq.w     D0, 1
  369. 000003E4  D651                     add.w      D3, [A1]
  370. 000003E6  43E9 0004                lea.l      A1, [A1 + 0x4]
  371. 000003EA  6BF6                     bmi        -0x8 /* 000003E2 */
  372. label000003EC:
  373. 000003EC  3540 0240                move.w     [A2 + 0x240], D0
  374. 000003F0  A02A                     trap       HUnlock
  375. 000003F2  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  376. 000003F6  6708                     beq        +0xA /* 00000400 */
  377. 000003F8  487A 00CC                pea.l      [PC + 0xCC /* 000004C6 */]
  378. 000003FC  4EAD 0CD2                jsr        [A5 + 0xCD2]
  379. label00000400:
  380. 00000400  548F                     addq.l     A7, 2
  381. 00000402  302E FFFC                move.w     D0, [A6 - 0x4]
  382. 00000406  906A 0242                sub.w      D0, [A2 + 0x242]
  383. 0000040A  6A04                     bpl        +0x6 /* 00000410 */
  384. 0000040C  302A 0242                move.w     D0, [A2 + 0x242]
  385. label00000410:
  386. 00000410  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  387. 00000414  3F3C 7FFF                move.w     -[A7], 0x7FFF
  388. 00000418  3F00                     move.w     -[A7], D0
  389. 0000041A  A869                     trap       FixRatio
  390. 0000041C  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  391. 00000420  6708                     beq        +0xA /* 0000042A */
  392. 00000422  487A 00A2                pea.l      [PC + 0xA2 /* 000004C6 */]
  393. 00000426  4EAD 0CD2                jsr        [A5 + 0xCD2]
  394. label0000042A:
  395. 0000042A  548F                     addq.l     A7, 2
  396. 0000042C  255F 0244                move.l     [A2 + 0x244], [A7]+
  397. 00000430  323C 7FFF                move.w     D1, 0x7FFF
  398. 00000434  4A6A 0240                tst.w      [A2 + 0x240]
  399. 00000438  660C                     bne        +0xE /* 00000446 */
  400. 0000043A  302A 0242                move.w     D0, [A2 + 0x242]
  401. 0000043E  906E FFFC                sub.w      D0, [A6 - 0x4]
  402. 00000442  6B02                     bmi        +0x4 /* 00000446 */
  403. 00000444  4241                     clr.w      D1
  404. label00000446:
  405. 00000446  206A 008C                movea.l    A0, [A2 + 0x8C]
  406. 0000044A  2250                     movea.l    A1, [A0]
  407. 0000044C  2F11                     move.l     -[A7], [A1]
  408. 0000044E  3F01                     move.w     -[A7], D1
  409. 00000450  A965                     trap       SetControlMaximum/SetMaxCtl
  410. 00000452  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  411. 00000456  6708                     beq        +0xA /* 00000460 */
  412. 00000458  487A 006C                pea.l      [PC + 0x6C /* 000004C6 */]
  413. 0000045C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  414. label00000460:
  415. 00000460  548F                     addq.l     A7, 2
  416. 00000462  7600                     moveq.l    D3, 0x00
  417. 00000464  362A 0240                move.w     D3, [A2 + 0x240]
  418. 00000468  4FEF FFFA                lea.l      A7, [A7 - 0x6]
  419. 0000046C  4843                     swap.w     D3
  420. 0000046E  2F03                     move.l     -[A7], D3
  421. 00000470  2F2A 0244                move.l     -[A7], [A2 + 0x244]
  422. 00000474  A868                     trap       FixMul
  423. 00000476  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  424. 0000047A  6708                     beq        +0xA /* 00000484 */
  425. 0000047C  487A 0048                pea.l      [PC + 0x48 /* 000004C6 */]
  426. 00000480  4EAD 0CD2                jsr        [A5 + 0xCD2]
  427. label00000484:
  428. 00000484  548F                     addq.l     A7, 2
  429. 00000486  A86C                     trap       FixRound
  430. 00000488  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  431. 0000048C  6708                     beq        +0xA /* 00000496 */
  432. 0000048E  487A 0036                pea.l      [PC + 0x36 /* 000004C6 */]
  433. 00000492  4EAD 0CD2                jsr        [A5 + 0xCD2]
  434. label00000496:
  435. 00000496  548F                     addq.l     A7, 2
  436. 00000498  301F                     move.w     D0, [A7]+
  437. 0000049A  206A 008C                movea.l    A0, [A2 + 0x8C]
  438. 0000049E  2250                     movea.l    A1, [A0]
  439. 000004A0  2F11                     move.l     -[A7], [A1]
  440. 000004A2  3F00                     move.w     -[A7], D0
  441. 000004A4  A963                     trap       SetControlValue/SetCtlValue
  442. 000004A6  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  443. 000004AA  6708                     beq        +0xA /* 000004B4 */
  444. 000004AC  487A 0018                pea.l      [PC + 0x18 /* 000004C6 */]
  445. 000004B0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  446. label000004B4:
  447. 000004B4  548F                     addq.l     A7, 2
  448. 000004B6  4CDF 070F                movem.l    A2,A1,A0,D3,D2,D1,D0, [A7]+
  449. 000004BA  4E5E                     unlink     A6
  450. 000004BC  2F57 0004                move.l     [A7 + 0x4], [A7]
  451. 000004C0  4FEF 0004                lea.l      A7, [A7 + 0x4]
  452. 000004C4  4E75                     rts
  453. 000004C6  8B53                     or.w       [A3], D5
  454. 000004C8  4554                     chk.w      D2, [A4]
  455. 000004CA  434F                     chk.w      D1, A7
  456. 000004CC  4E54 524F                link       A4, -0xFFFFADB1
  457. 000004D0  4C53 0000                movem.l    <none>, [A3]
  458. export_306:
  459. 000004D4  4E56 FFEE                link       A6, -0x0012
  460. 000004D8  48E7 F0E0                movem.l    -[A7], D0,D1,D2,D3,A0,A1,A2
  461. 000004DC  246E 0008                movea.l    A2, [A6 + 0x8]
  462. 000004E0  4FEF FFFC                lea.l      A7, [A7 - 0x4]
  463. 000004E4  2F2A 023C                move.l     -[A7], [A2 + 0x23C]
  464. 000004E8  3F3C 0004                move.w     -[A7], 0x4
  465. 000004EC  A83D                     trap       TEDispatch
  466. 000004EE  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  467. 000004F2  6708                     beq        +0xA /* 000004FC */
  468. 000004F4  487A 00CC                pea.l      [PC + 0xCC /* 000005C2 */]
  469. 000004F8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  470. label000004FC:
  471. 000004FC  548F                     addq.l     A7, 2
  472. 000004FE  205F                     movea.l    A0, [A7]+
  473. 00000500  2D48 FFF8                move.l     [A6 - 0x8], A0
  474. 00000504  A029                     trap       HLock
  475. 00000506  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  476. 0000050A  6708                     beq        +0xA /* 00000514 */
  477. 0000050C  487A 00B4                pea.l      [PC + 0xB4 /* 000005C2 */]
  478. 00000510  4EAD 0CD2                jsr        [A5 + 0xCD2]
  479. label00000514:
  480. 00000514  548F                     addq.l     A7, 2
  481. 00000516  2250                     movea.l    A1, [A0]
  482. 00000518  2F29 0004                move.l     -[A7], [A1 + 0x4]
  483. 0000051C  A02A                     trap       HUnlock
  484. 0000051E  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  485. 00000522  6708                     beq        +0xA /* 0000052C */
  486. 00000524  487A 009C                pea.l      [PC + 0x9C /* 000005C2 */]
  487. 00000528  4EAD 0CD2                jsr        [A5 + 0xCD2]
  488. label0000052C:
  489. 0000052C  548F                     addq.l     A7, 2
  490. 0000052E  205F                     movea.l    A0, [A7]+
  491. 00000530  A029                     trap       HLock
  492. 00000532  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  493. 00000536  6708                     beq        +0xA /* 00000540 */
  494. 00000538  487A 0088                pea.l      [PC + 0x88 /* 000005C2 */]
  495. 0000053C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  496. label00000540:
  497. 00000540  548F                     addq.l     A7, 2
  498. 00000542  2250                     movea.l    A1, [A0]
  499. 00000544  3629 0002                move.w     D3, [A1 + 0x2]
  500. 00000548  A02A                     trap       HUnlock
  501. 0000054A  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  502. 0000054E  6708                     beq        +0xA /* 00000558 */
  503. 00000550  487A 0070                pea.l      [PC + 0x70 /* 000005C2 */]
  504. 00000554  4EAD 0CD2                jsr        [A5 + 0xCD2]
  505. label00000558:
  506. 00000558  548F                     addq.l     A7, 2
  507. 0000055A  206A 023C                movea.l    A0, [A2 + 0x23C]
  508. 0000055E  2250                     movea.l    A1, [A0]
  509. 00000560  43E9 0008                lea.l      A1, [A1 + 0x8]
  510. 00000564  2D51 FFEE                move.l     [A6 - 0x12], [A1]
  511. 00000568  2D69 0004 FFF2           move.l     [A6 - 0xE], [A1 + 0x4]
  512. 0000056E  22AA 0010                move.l     [A1], [A2 + 0x10]
  513. 00000572  5869 0002                addq.w     [A1 + 0x2], 4
  514. 00000576  0651 0014                addi.w     [A1], 0x14
  515. 0000057A  236A 0014 0004           move.l     [A1 + 0x4], [A2 + 0x14]
  516. 00000580  0469 000F 0006           subi.w     [A1 + 0x6], 0xF
  517. 00000586  0469 000F 0004           subi.w     [A1 + 0x4], 0xF
  518. 0000058C  7000                     moveq.l    D0, 0x00
  519. 0000058E  3029 0004                move.w     D0, [A1 + 0x4]
  520. 00000592  9051                     sub.w      D0, [A1]
  521. 00000594  80C3                     divu.w     D0, D3
  522. 00000596  3540 0242                move.w     [A2 + 0x242], D0
  523. 0000059A  4840                     swap.w     D0
  524. 0000059C  9169 0004                sub.w      [A1 + 0x4], D0
  525. 000005A0  2211                     move.l     D1, [A1]
  526. 000005A2  2429 0004                move.l     D2, [A1 + 0x4]
  527. 000005A6  B2AE FFEE                cmp.l      D1, [A6 - 0x12]
  528. 000005AA  6606                     bne        +0x8 /* 000005B2 */
  529. 000005AC  B4AE FFF2                cmp.l      D2, [A6 - 0xE]
  530. 000005B0  4E71                     nop
  531. label000005B2:
  532. 000005B2  4CDF 070F                movem.l    A2,A1,A0,D3,D2,D1,D0, [A7]+
  533. 000005B6  4E5E                     unlink     A6
  534. 000005B8  2F57 0004                move.l     [A7 + 0x4], [A7]
  535. 000005BC  4FEF 0004                lea.l      A7, [A7 + 0x4]
  536. 000005C0  4E75                     rts
  537. 000005C2  8C53                     or.w       D6, [A3]
  538. 000005C4  4554                     chk.w      D2, [A4]
  539. 000005C6  5649                     addq.w     A1, 3
  540. 000005C8  4557                     chk.w      D2, [A7]
  541. 000005CA  5354                     subq.w     [A4], 1
  542. 000005CC  5546                     subq.w     D6, 2
  543. 000005CE  4620                     not.b      -[A0]
  544. 000005D0  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  545. export_307: // at 000005D2 (misaligned)
  546. 000005D4  FFF8                     .extension 0xFF8 // unimplemented
  547. 000005D6  48E7 E0E0                movem.l    -[A7], D0,D1,D2,A0,A1,A2
  548. 000005DA  246E 0008                movea.l    A2, [A6 + 0x8]
  549. 000005DE  2F0A                     move.l     -[A7], A2
  550. 000005E0  206A 0348                movea.l    A0, [A2 + 0x348]
  551. 000005E4  A029                     trap       HLock
  552. 000005E6  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  553. 000005EA  6708                     beq        +0xA /* 000005F4 */
  554. 000005EC  487A 007C                pea.l      [PC + 0x7C /* 0000066A */]
  555. 000005F0  4EAD 0CD2                jsr        [A5 + 0xCD2]
  556. label000005F4:
  557. 000005F4  548F                     addq.l     A7, 2
  558. 000005F6  2250                     movea.l    A1, [A0]
  559. 000005F8  3F29 007C                move.w     -[A7], [A1 + 0x7C]
  560. 000005FC  3F29 007A                move.w     -[A7], [A1 + 0x7A]
  561. 00000600  4267                     clr.w      -[A7]
  562. 00000602  A91B                     trap       MoveWindow
  563. 00000604  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  564. 00000608  6708                     beq        +0xA /* 00000612 */
  565. 0000060A  487A 005E                pea.l      [PC + 0x5E /* 0000066A */]
  566. 0000060E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  567. label00000612:
  568. 00000612  548F                     addq.l     A7, 2
  569. 00000614  2F0A                     move.l     -[A7], A2
  570. 00000616  206A 0348                movea.l    A0, [A2 + 0x348]
  571. 0000061A  2250                     movea.l    A1, [A0]
  572. 0000061C  3F29 0080                move.w     -[A7], [A1 + 0x80]
  573. 00000620  3F29 007E                move.w     -[A7], [A1 + 0x7E]
  574. 00000624  4267                     clr.w      -[A7]
  575. 00000626  A91D                     trap       SizeWindow
  576. 00000628  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  577. 0000062C  6708                     beq        +0xA /* 00000636 */
  578. 0000062E  487A 003A                pea.l      [PC + 0x3A /* 0000066A */]
  579. 00000632  4EAD 0CD2                jsr        [A5 + 0xCD2]
  580. label00000636:
  581. 00000636  548F                     addq.l     A7, 2
  582. 00000638  206A 0348                movea.l    A0, [A2 + 0x348]
  583. 0000063C  A02A                     trap       HUnlock
  584. 0000063E  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  585. 00000642  6708                     beq        +0xA /* 0000064C */
  586. 00000644  487A 0024                pea.l      [PC + 0x24 /* 0000066A */]
  587. 00000648  4EAD 0CD2                jsr        [A5 + 0xCD2]
  588. label0000064C:
  589. 0000064C  548F                     addq.l     A7, 2
  590. 0000064E  2F0A                     move.l     -[A7], A2
  591. 00000650  4EBA 0028                jsr        [PC + 0x28 /* 0000067A */]
  592. 00000654  2F0A                     move.l     -[A7], A2
  593. 00000656  4EAD 0A5A                jsr        [A5 + 0xA5A]
  594. 0000065A  4CDF 0707                movem.l    A2,A1,A0,D2,D1,D0, [A7]+
  595. 0000065E  4E5E                     unlink     A6
  596. 00000660  2F57 0004                move.l     [A7 + 0x4], [A7]
  597. 00000664  4FEF 0004                lea.l      A7, [A7 + 0x4]
  598. 00000668  4E75                     rts
  599. 0000066A  8D53                     or.w       [A3], D6
  600. 0000066C  4554                     chk.w      D2, [A4]
  601. 0000066E  5749                     subq.w     A1, 3
  602. 00000670  4E44                     trap       4
  603. 00000672  4F57                     chk.w      D7, [A7]
  604. 00000674  5349                     subq.w     A1, 1
  605. 00000676  5A45                     addq.w     D5, 5
  606. 00000678  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  607. // begin alternate branch 0000067A-0000067E
  608. export_308:
  609. fn0000067A:
  610. 0000067A  4E56 FFF0                link       A6, -0x0010
  611. // end alternate branch 0000067A-0000067E
  612. export_308: // at 0000067A (misaligned)
  613. fn0000067A: // (misaligned)
  614. 0000067C  FFF0                     .extension 0xFF0 // unimplemented
  615. 0000067E  48E7 E0E0                movem.l    -[A7], D0,D1,D2,A0,A1,A2
  616. 00000682  486E FFF0                pea.l      [A6 - 0x10]
  617. 00000686  A874                     trap       GetPort
  618. 00000688  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  619. 0000068C  6708                     beq        +0xA /* 00000696 */
  620. 0000068E  487A 01BC                pea.l      [PC + 0x1BC /* 0000084C */]
  621. 00000692  4EAD 0CD2                jsr        [A5 + 0xCD2]
  622. label00000696:
  623. 00000696  548F                     addq.l     A7, 2
  624. 00000698  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  625. 0000069C  A873                     trap       SetPort
  626. 0000069E  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  627. 000006A2  6708                     beq        +0xA /* 000006AC */
  628. 000006A4  487A 01A6                pea.l      [PC + 0x1A6 /* 0000084C */]
  629. 000006A8  4EAD 0CD2                jsr        [A5 + 0xCD2]
  630. label000006AC:
  631. 000006AC  548F                     addq.l     A7, 2
  632. 000006AE  246E 0008                movea.l    A2, [A6 + 0x8]
  633. 000006B2  302A 0014                move.w     D0, [A2 + 0x14]
  634. 000006B6  906A 0010                sub.w      D0, [A2 + 0x10]
  635. 000006BA  5240                     addq.w     D0, 1
  636. 000006BC  3D40 FFFC                move.w     [A6 - 0x4], D0
  637. 000006C0  0440 0010                subi.w     D0, 0x10
  638. 000006C4  3D40 FFF8                move.w     [A6 - 0x8], D0
  639. 000006C8  3D7C FFFF FFFA           move.w     [A6 - 0x6], 0xFFFF
  640. 000006CE  302A 0016                move.w     D0, [A2 + 0x16]
  641. 000006D2  906A 0012                sub.w      D0, [A2 + 0x12]
  642. 000006D6  0440 000E                subi.w     D0, 0xE
  643. 000006DA  3D40 FFFE                move.w     [A6 - 0x2], D0
  644. 000006DE  206A 008C                movea.l    A0, [A2 + 0x8C]
  645. 000006E2  A029                     trap       HLock
  646. 000006E4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  647. 000006E8  6708                     beq        +0xA /* 000006F2 */
  648. 000006EA  487A 0160                pea.l      [PC + 0x160 /* 0000084C */]
  649. 000006EE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  650. label000006F2:
  651. 000006F2  548F                     addq.l     A7, 2
  652. 000006F4  2250                     movea.l    A1, [A0]
  653. 000006F6  2D51 FFF4                move.l     [A6 - 0xC], [A1]
  654. 000006FA  A02A                     trap       HUnlock
  655. 000006FC  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  656. 00000700  6708                     beq        +0xA /* 0000070A */
  657. 00000702  487A 0148                pea.l      [PC + 0x148 /* 0000084C */]
  658. 00000706  4EAD 0CD2                jsr        [A5 + 0xCD2]
  659. label0000070A:
  660. 0000070A  548F                     addq.l     A7, 2
  661. 0000070C  2F2E FFF4                move.l     -[A7], [A6 - 0xC]
  662. 00000710  A958                     trap       HideControl
  663. 00000712  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  664. 00000716  6708                     beq        +0xA /* 00000720 */
  665. 00000718  487A 0132                pea.l      [PC + 0x132 /* 0000084C */]
  666. 0000071C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  667. label00000720:
  668. 00000720  548F                     addq.l     A7, 2
  669. 00000722  2F2A 008C                move.l     -[A7], [A2 + 0x8C]
  670. 00000726  A958                     trap       HideControl
  671. 00000728  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  672. 0000072C  6708                     beq        +0xA /* 00000736 */
  673. 0000072E  487A 011C                pea.l      [PC + 0x11C /* 0000084C */]
  674. 00000732  4EAD 0CD2                jsr        [A5 + 0xCD2]
  675. label00000736:
  676. 00000736  548F                     addq.l     A7, 2
  677. 00000738  2F2A 008C                move.l     -[A7], [A2 + 0x8C]
  678. 0000073C  3F2E FFFA                move.w     -[A7], [A6 - 0x6]
  679. 00000740  3F2E FFF8                move.w     -[A7], [A6 - 0x8]
  680. 00000744  A959                     trap       MoveControl
  681. 00000746  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  682. 0000074A  6708                     beq        +0xA /* 00000754 */
  683. 0000074C  487A 00FE                pea.l      [PC + 0xFE /* 0000084C */]
  684. 00000750  4EAD 0CD2                jsr        [A5 + 0xCD2]
  685. label00000754:
  686. 00000754  548F                     addq.l     A7, 2
  687. 00000756  2F2A 008C                move.l     -[A7], [A2 + 0x8C]
  688. 0000075A  302E FFFE                move.w     D0, [A6 - 0x2]
  689. 0000075E  906E FFFA                sub.w      D0, [A6 - 0x6]
  690. 00000762  3F00                     move.w     -[A7], D0
  691. 00000764  302E FFFC                move.w     D0, [A6 - 0x4]
  692. 00000768  906E FFF8                sub.w      D0, [A6 - 0x8]
  693. 0000076C  3F00                     move.w     -[A7], D0
  694. 0000076E  A95C                     trap       SizeControl
  695. 00000770  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  696. 00000774  6708                     beq        +0xA /* 0000077E */
  697. 00000776  487A 00D4                pea.l      [PC + 0xD4 /* 0000084C */]
  698. 0000077A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  699. label0000077E:
  700. 0000077E  548F                     addq.l     A7, 2
  701. 00000780  3D7C 0012 FFF8           move.w     [A6 - 0x8], 0x12
  702. 00000786  302A 0016                move.w     D0, [A2 + 0x16]
  703. 0000078A  906A 0012                sub.w      D0, [A2 + 0x12]
  704. 0000078E  5240                     addq.w     D0, 1
  705. 00000790  3D40 FFFE                move.w     [A6 - 0x2], D0
  706. 00000794  0440 0010                subi.w     D0, 0x10
  707. 00000798  3D40 FFFA                move.w     [A6 - 0x6], D0
  708. 0000079C  302A 0014                move.w     D0, [A2 + 0x14]
  709. 000007A0  906A 0010                sub.w      D0, [A2 + 0x10]
  710. 000007A4  0440 000E                subi.w     D0, 0xE
  711. 000007A8  3D40 FFFC                move.w     [A6 - 0x4], D0
  712. 000007AC  2F2E FFF4                move.l     -[A7], [A6 - 0xC]
  713. 000007B0  3F2E FFFA                move.w     -[A7], [A6 - 0x6]
  714. 000007B4  3F2E FFF8                move.w     -[A7], [A6 - 0x8]
  715. 000007B8  A959                     trap       MoveControl
  716. 000007BA  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  717. 000007BE  6708                     beq        +0xA /* 000007C8 */
  718. 000007C0  487A 008A                pea.l      [PC + 0x8A /* 0000084C */]
  719. 000007C4  4EAD 0CD2                jsr        [A5 + 0xCD2]
  720. label000007C8:
  721. 000007C8  548F                     addq.l     A7, 2
  722. 000007CA  2F2E FFF4                move.l     -[A7], [A6 - 0xC]
  723. 000007CE  302E FFFE                move.w     D0, [A6 - 0x2]
  724. 000007D2  906E FFFA                sub.w      D0, [A6 - 0x6]
  725. 000007D6  3F00                     move.w     -[A7], D0
  726. 000007D8  302E FFFC                move.w     D0, [A6 - 0x4]
  727. 000007DC  906E FFF8                sub.w      D0, [A6 - 0x8]
  728. 000007E0  3F00                     move.w     -[A7], D0
  729. 000007E2  A95C                     trap       SizeControl
  730. 000007E4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  731. 000007E8  6708                     beq        +0xA /* 000007F2 */
  732. 000007EA  487A 0060                pea.l      [PC + 0x60 /* 0000084C */]
  733. 000007EE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  734. label000007F2:
  735. 000007F2  548F                     addq.l     A7, 2
  736. 000007F4  2F2E FFF4                move.l     -[A7], [A6 - 0xC]
  737. 000007F8  A957                     trap       ShowControl
  738. 000007FA  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  739. 000007FE  6708                     beq        +0xA /* 00000808 */
  740. 00000800  487A 004A                pea.l      [PC + 0x4A /* 0000084C */]
  741. 00000804  4EAD 0CD2                jsr        [A5 + 0xCD2]
  742. label00000808:
  743. 00000808  548F                     addq.l     A7, 2
  744. 0000080A  2F2A 008C                move.l     -[A7], [A2 + 0x8C]
  745. 0000080E  A957                     trap       ShowControl
  746. 00000810  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  747. 00000814  6708                     beq        +0xA /* 0000081E */
  748. 00000816  487A 0034                pea.l      [PC + 0x34 /* 0000084C */]
  749. 0000081A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  750. label0000081E:
  751. 0000081E  548F                     addq.l     A7, 2
  752. 00000820  2F0A                     move.l     -[A7], A2
  753. 00000822  4EBA 003A                jsr        [PC + 0x3A /* 0000085E */]
  754. 00000826  2F2E FFF0                move.l     -[A7], [A6 - 0x10]
  755. 0000082A  A873                     trap       SetPort
  756. 0000082C  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  757. 00000830  6708                     beq        +0xA /* 0000083A */
  758. 00000832  487A 0018                pea.l      [PC + 0x18 /* 0000084C */]
  759. 00000836  4EAD 0CD2                jsr        [A5 + 0xCD2]
  760. label0000083A:
  761. 0000083A  548F                     addq.l     A7, 2
  762. 0000083C  4CDF 0707                movem.l    A2,A1,A0,D2,D1,D0, [A7]+
  763. 00000840  4E5E                     unlink     A6
  764. 00000842  2F57 0004                move.l     [A7 + 0x4], [A7]
  765. 00000846  4FEF 0004                lea.l      A7, [A7 + 0x4]
  766. 0000084A  4E75                     rts
  767. 0000084C  8E53                     or.w       D7, [A3]
  768. 0000084E  4554                     chk.w      D2, [A4]
  769. 00000850  5749                     subq.w     A1, 3
  770. 00000852  4E44                     trap       4
  771. 00000854  4F57                     chk.w      D7, [A7]
  772. 00000856  5354                     subq.w     [A4], 1
  773. 00000858  5546                     subq.w     D6, 2
  774. 0000085A  4620                     not.b      -[A0]
  775. 0000085C  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  776. // begin alternate branch 0000085E-00000862
  777. export_309:
  778. fn0000085E:
  779. 0000085E  4E56 FFF8                link       A6, -0x0008
  780. // end alternate branch 0000085E-00000862
  781. export_309: // at 0000085E (misaligned)
  782. fn0000085E: // (misaligned)
  783. 00000860  FFF8                     .extension 0xFF8 // unimplemented
  784. 00000862  48E7 E0E0                movem.l    -[A7], D0,D1,D2,A0,A1,A2
  785. 00000866  246E 0008                movea.l    A2, [A6 + 0x8]
  786. 0000086A  486E FFFC                pea.l      [A6 - 0x4]
  787. 0000086E  A874                     trap       GetPort
  788. 00000870  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  789. 00000874  6708                     beq        +0xA /* 0000087E */
  790. 00000876  487A 00C0                pea.l      [PC + 0xC0 /* 00000938 */]
  791. 0000087A  4EAD 0CD2                jsr        [A5 + 0xCD2]
  792. label0000087E:
  793. 0000087E  548F                     addq.l     A7, 2
  794. 00000880  2F0A                     move.l     -[A7], A2
  795. 00000882  A873                     trap       SetPort
  796. 00000884  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  797. 00000888  6708                     beq        +0xA /* 00000892 */
  798. 0000088A  487A 00AC                pea.l      [PC + 0xAC /* 00000938 */]
  799. 0000088E  4EAD 0CD2                jsr        [A5 + 0xCD2]
  800. label00000892:
  801. 00000892  548F                     addq.l     A7, 2
  802. 00000894  42AE FFF8                clr.l      [A6 - 0x8]
  803. 00000898  486E FFF8                pea.l      [A6 - 0x8]
  804. 0000089C  A870                     trap       LocalToGlobal
  805. 0000089E  206A 0348                movea.l    A0, [A2 + 0x348]
  806. 000008A2  A029                     trap       HLock
  807. 000008A4  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  808. 000008A8  6708                     beq        +0xA /* 000008B2 */
  809. 000008AA  487A 008C                pea.l      [PC + 0x8C /* 00000938 */]
  810. 000008AE  4EAD 0CD2                jsr        [A5 + 0xCD2]
  811. label000008B2:
  812. 000008B2  548F                     addq.l     A7, 2
  813. 000008B4  2250                     movea.l    A1, [A0]
  814. 000008B6  336E FFF8 007A           move.w     [A1 + 0x7A], [A6 - 0x8]
  815. 000008BC  336E FFFA 007C           move.w     [A1 + 0x7C], [A6 - 0x6]
  816. 000008C2  302A 0010                move.w     D0, [A2 + 0x10]
  817. 000008C6  3340 007A                move.w     [A1 + 0x7A], D0
  818. 000008CA  4440                     neg.w      D0
  819. 000008CC  D06A 0014                add.w      D0, [A2 + 0x14]
  820. 000008D0  3340 007E                move.w     [A1 + 0x7E], D0
  821. 000008D4  302A 0012                move.w     D0, [A2 + 0x12]
  822. 000008D8  3340 007C                move.w     [A1 + 0x7C], D0
  823. 000008DC  4440                     neg.w      D0
  824. 000008DE  D06A 0016                add.w      D0, [A2 + 0x16]
  825. 000008E2  3340 0080                move.w     [A1 + 0x80], D0
  826. 000008E6  4869 007A                pea.l      [A1 + 0x7A]
  827. 000008EA  A870                     trap       LocalToGlobal
  828. 000008EC  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  829. 000008F0  6708                     beq        +0xA /* 000008FA */
  830. 000008F2  487A 0044                pea.l      [PC + 0x44 /* 00000938 */]
  831. 000008F6  4EAD 0CD2                jsr        [A5 + 0xCD2]
  832. label000008FA:
  833. 000008FA  548F                     addq.l     A7, 2
  834. 000008FC  206A 0348                movea.l    A0, [A2 + 0x348]
  835. 00000900  A02A                     trap       HUnlock
  836. 00000902  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  837. 00000906  6708                     beq        +0xA /* 00000910 */
  838. 00000908  487A 002E                pea.l      [PC + 0x2E /* 00000938 */]
  839. 0000090C  4EAD 0CD2                jsr        [A5 + 0xCD2]
  840. label00000910:
  841. 00000910  548F                     addq.l     A7, 2
  842. 00000912  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  843. 00000916  A873                     trap       SetPort
  844. 00000918  3F38 0220                move.w     -[A7], [0x00000220 /* MemErr */]
  845. 0000091C  6708                     beq        +0xA /* 00000926 */
  846. 0000091E  487A 0018                pea.l      [PC + 0x18 /* 00000938 */]
  847. 00000922  4EAD 0CD2                jsr        [A5 + 0xCD2]
  848. label00000926:
  849. 00000926  548F                     addq.l     A7, 2
  850. 00000928  4CDF 0707                movem.l    A2,A1,A0,D2,D1,D0, [A7]+
  851. 0000092C  4E5E                     unlink     A6
  852. 0000092E  2F57 0004                move.l     [A7 + 0x4], [A7]
  853. 00000932  4FEF 0004                lea.l      A7, [A7 + 0x4]
  854. 00000936  4E75                     rts
  855. 00000938  9055                     sub.w      D0, [A5]
  856. 0000093A  5044                     addq.w     D4, 8
  857. 0000093C  4154                     chk.w      D0, [A4]
  858. 0000093E  4550                     chk.w      D2, [A0]
  859. 00000940  524C                     addq.w     A4, 1
  860. 00000942  5752                     subq.w     [A2], 3
  861. 00000944  4543                     chk.w      D2, D3
  862. 00000946  4F52                     chk.w      D7, [A2]
  863. 00000948  4420                     neg.b      -[A0]
  864. 0000094A  0000                     .incomplete
  865.